package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工实体类
 */
public class EmployeeBean {
    /*员id*/
    private Integer emId;
    /*姓名*/
    private String name;
    /*生日*/
    private LocalDate birthday;
    /*工作日期*/
    private LocalDate workDate = LocalDate.now();
    /*电话*/
    private String phone;
    /*头像*/
    private String head;
    /*专长*/
    private String skill;
    /*状态*/
    private String status = "在职";
    /*工资*/
    private Integer salary;
    /*参与的项目进度集合*/
    private List<ProjectBean> prgList;

    public EmployeeBean() {
    }

    public EmployeeBean(String name, LocalDate birthday, String phone, String head, String skill, Integer salary) {
        this.name = name;
        this.birthday = birthday;
        this.phone = phone;
        this.head = head;
        this.skill = skill;
        this.salary = salary;
    }

    public Integer getEmId() {
        return emId;
    }

    public void setEmId(Integer emId) {
        this.emId = emId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDate getWorkDate() {
        return workDate;
    }

    public void setWorkDate(LocalDate workDate) {
        this.workDate = workDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    public List<ProjectBean> getPrgList() {
        return prgList;
    }

    public void setPrgList(List<ProjectBean> prgList) {
        this.prgList = prgList;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "emId=" + emId +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", workDate=" + workDate +
                ", phone='" + phone + '\'' +
                ", head='" + head + '\'' +
                ", skill='" + skill + '\'' +
                ", status='" + status + '\'' +
                ", salary=" + salary +
                ", prjList=" + prgList +
                "}\n";
    }
}
